A man who was found to be in possession of hundreds of indecent on devices that he attempted to hide from police has been jailed.