Exposing InputStream as source for database and making Maxmind DB handle protected