limit value sizes, filter out expired values