fixing thread safety issue with querycache for non parameterized sql queries