Use hash keys for further database performance improvements