Added support for key prefix configuration.