Optimize pimsreader