FREENAS_DATABASE does not need to be evaluated everytime

This reduces drastically the number of system calls.

Ticket:	#5602